package com.bls.cate_s.model;

public class User {
    private long userid;
    private String account;
    private String username;
    private String passwd;

    public User(long userid, String account, String username, String passwd) {
        this.userid = userid;
        this.account = account;
        this.username = username;
        this.passwd = passwd;
    }

    /*public static User json2novel (JSONObject json) {
        try {
            return new User(json.getLong("userid"),
                    json.getString("account"),
                    json.getString("username"),
                    json.getString("passwd")
            );
        }catch (Exception ex) {
            ex.printStackTrace();
        }
        return null;
    }*/
    public long getUserid() {
        return userid;
    }

    public void setUserid(long userid) {
        this.userid = userid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }
}
